package org.oaix.utils;

import com.alibaba.fastjson2.annotation.JSONField;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.Collections;
import java.util.List;

/**
 * 浙大chatAi 请求
 */
@Data
public class ZjuEduChatAskRequest {

    private Long sessionId;

    private String model;

    @JSONField(name = "max_tokens")
    private Integer maxTokens;

    private Boolean stream = true;

    private List<RoleContent> messages = Collections.emptyList();

    private Long personId;

    private LocalDateTime askTime;

    @Data
    public static class RoleContent{

        private String role;

        private String content;

    }
}
